module.exports = {
  mode: 'development',
  entry: './src/index.js',
  output: {
    filename: 'index.js',
  },
  plugins: [
    new HtmlWebpackPlugin({
      template: './src/index.html', // 以index为模板，生成文件
    }),
  ],
}
